package temp

import (
	"background/internal/model/back/entity"
)

// 个性标签
type Song struct {
	Basic
	Description string `json:"description,omitempty" gorm:"column:description;not null; type:varchar(255);comment:'description'"    `
	Artist      string `json:"artist,omitempty"      gorm:"column:artist;not null; type:varchar(255);     comment:'artist'"    `
	Path        string `json:"path,omitempty"        gorm:"column:path;not null; type:varchar(255);       comment:'path'"    `
	Duration    int    `json:"duration,omitempty"      gorm:"column:duration;not null; type:int;     comment:'duration'"    `
	IsVip       bool   `json:"is_vip,omitempty"       gorm:"column:is_vip;not null; type:bool;      comment:'is_vip'"    `
	IsTemp      bool   `json:"is_temp,omitempty"      gorm:"column:is_temp;not null; type:bool;     comment:'is_temp'"    `
}

func (c Song) TableName() string {
	return entity.ProjectPre + "song"
}
